package a.f;

import a.c.k;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public abstract class mb
  implements rc
{
  private static final String e = "y.layout.CANONIC_MULTI_STAGE_LAYOUTER_NODE_SIZE_CHECKED_DPKEY";
  private vc f = new ib();
  private vc g = new db();
  private vc h = new t();
  private vc i = new jb();
  private vc j = new cb();
  private vc k = new a.f.e.c();
  private vc l = new a.f.c.c();
  boolean m = true;
  boolean n = true;
  boolean o = true;
  boolean p = false;
  boolean q = true;
  boolean r = false;
  boolean s = true;
  List t = new ArrayList(5);
  List u = new ArrayList(5);
  public static int v;
  
  protected abstract void a(o paramo);
  
  protected abstract boolean b(o paramo);
  
  private void c(o paramo)
  {
    a(paramo, paramo);
  }
  
  private void a(a.c.t paramt, dc paramdc)
  {
    boolean bool = o.eg;
    int i1 = o.dg;
    k localk = paramt.c(i.c);
    if ((bool) || (localk == null)) {
      localk = a.i.q.a(Boolean.FALSE);
    }
    Iterator localIterator = paramt.a();
    label105:
    do
    {
      Object localObject;
      do
      {
        if (!localIterator.hasNext()) {
          return;
        }
        localObject = localIterator.next();
        if (bool) {
          break label105;
        }
        if (localk.getBool(localObject)) {
          break;
        }
        a(paramdc, localObject);
        if (bool) {
          break label105;
        }
      } while (i1 == 0);
      b(paramdc, localObject);
    } while (i1 == 0);
  }
  
  protected void a(dc paramdc, Object paramObject)
    throws IllegalArgumentException
  {
    zc localzc = paramdc.d(paramObject);
    if ((o.eg) || ((localzc.c() == 0.0D) || (localzc.d() == 0.0D))) {
      throw new IllegalArgumentException("Graph contains nodes with zero width/height. Please enlarge those nodes manually or by using LayoutStage y.layout.MinNodeSizeStage.");
    }
  }
  
  protected void b(dc paramdc, Object paramObject)
    throws IllegalArgumentException
  {
    zc localzc = paramdc.d(paramObject);
    if ((o.eg) || ((localzc.c() == 0.0D) || (localzc.d() == 0.0D))) {
      throw new IllegalArgumentException("Graph contains group nodes with zero width/height. Please enlarge those nodes manually or by using LayoutStage y.layout.MinNodeSizeStage.");
    }
  }
  
  public void a(vc paramvc)
  {
    this.t.add(paramvc);
  }
  
  public void b(vc paramvc)
  {
    this.u.add(paramvc);
  }
  
  public void c(vc paramvc)
  {
    boolean bool = o.eg;
    int i1 = this.t.indexOf(paramvc);
    if (!bool)
    {
      if (i1 >= 0) {
        this.t.remove(i1);
      }
      if (!bool) {
        i1 = this.u.indexOf(paramvc);
      }
    }
    else if (i1 < 0)
    {
      return;
    }
    this.u.remove(i1);
  }
  
  public vc b()
  {
    return this.k;
  }
  
  public void d(vc paramvc)
  {
    this.k = paramvc;
  }
  
  public vc c()
  {
    return this.f;
  }
  
  public void e(vc paramvc)
  {
    this.f = paramvc;
  }
  
  public vc d()
  {
    return this.g;
  }
  
  public void f(vc paramvc)
  {
    this.g = paramvc;
  }
  
  public vc e()
  {
    return this.h;
  }
  
  public void g(vc paramvc)
  {
    this.h = paramvc;
  }
  
  public vc f()
  {
    return this.i;
  }
  
  public void h(vc paramvc)
  {
    this.i = paramvc;
  }
  
  public vc g()
  {
    return this.l;
  }
  
  public void i(vc paramvc)
  {
    this.l = paramvc;
  }
  
  public vc h()
  {
    return this.j;
  }
  
  public void j(vc paramvc)
  {
    this.j = paramvc;
  }
  
  public void a(boolean paramBoolean)
  {
    this.q = paramBoolean;
  }
  
  public void a(byte paramByte)
  {
    if ((o.eg) || ((this.j instanceof cb))) {
      ((cb)this.j).a(paramByte);
    }
  }
  
  public byte i()
  {
    if (!o.eg) {
      if ((this.j instanceof cb)) {
        return ((cb)this.j).b();
      }
    }
    return 0;
  }
  
  public boolean j()
  {
    return this.q;
  }
  
  public void b(boolean paramBoolean)
  {
    this.n = paramBoolean;
  }
  
  public boolean k()
  {
    return this.n;
  }
  
  public void c(boolean paramBoolean)
  {
    this.r = paramBoolean;
  }
  
  public boolean l()
  {
    return this.r;
  }
  
  public boolean m()
  {
    return this.s;
  }
  
  public void d(boolean paramBoolean)
  {
    this.s = paramBoolean;
  }
  
  public void e(boolean paramBoolean)
  {
    this.o = paramBoolean;
  }
  
  public boolean n()
  {
    return this.o;
  }
  
  public void f(boolean paramBoolean)
  {
    this.m = paramBoolean;
  }
  
  public boolean o()
  {
    return this.m;
  }
  
  public void g(boolean paramBoolean)
  {
    this.p = paramBoolean;
  }
  
  public boolean p()
  {
    return this.p;
  }
  
  public void q()
  {
    this.p = false;
    this.m = false;
    this.r = false;
    this.n = false;
    this.o = false;
    this.q = false;
    this.s = false;
  }
  
  private rc r()
  {
    boolean bool = o.eg;
    int i2 = o.dg;
    Object localObject = new a_();
    int i1 = this.u.size() - 1;
    vc localvc;
    do
    {
      do
      {
        if (i1 < 0) {
          break;
        }
        localvc = (vc)this.u.get(i1);
        localvc.a((rc)localObject);
        localObject = localvc;
        i1--;
        if (bool) {
          break label112;
        }
        if (i2 != 0) {
          break label108;
        }
      } while (i2 == 0);
    } while (bool);
    if (!bool) {
      if (this.m)
      {
        this.g.a((rc)localObject);
        localObject = this.g;
      }
    }
    label108:
    label112:
    if (!bool) {
      if (this.n)
      {
        this.f.a((rc)localObject);
        localObject = this.f;
      }
    }
    if (!bool) {
      if (this.q)
      {
        this.j.a((rc)localObject);
        localObject = this.j;
      }
    }
    if (!bool) {
      if (this.r)
      {
        this.k.a((rc)localObject);
        localObject = this.k;
      }
    }
    if (!bool) {
      if (this.o)
      {
        this.h.a((rc)localObject);
        localObject = this.h;
      }
    }
    if (!bool) {
      if (this.p)
      {
        this.i.a((rc)localObject);
        localObject = this.i;
      }
    }
    if (!bool) {
      if (this.s)
      {
        this.l.a((rc)localObject);
        localObject = this.l;
      }
    }
    i1 = 0;
    do
    {
      if (i1 >= this.t.size()) {
        break;
      }
      localvc = (vc)this.t.get(i1);
      localvc.a((rc)localObject);
      if (i2 != 0) {
        break label322;
      }
      localObject = localvc;
      i1++;
    } while (i2 == 0);
    label322:
    return localObject;
  }
  
  public void doLayout(o paramo)
  {
    int i1 = 0;
    if (!o.eg)
    {
      if (paramo.c("y.layout.CANONIC_MULTI_STAGE_LAYOUTER_NODE_SIZE_CHECKED_DPKEY") == null) {
        c(paramo);
      }
    }
    else
    {
      paramo.a("y.layout.CANONIC_MULTI_STAGE_LAYOUTER_NODE_SIZE_CHECKED_DPKEY", a.i.q.a(Boolean.TRUE));
      i1 = 1;
    }
    rc localrc = r();
    localrc.doLayout(paramo);
    if (i1 != 0) {
      paramo.j("y.layout.CANONIC_MULTI_STAGE_LAYOUTER_NODE_SIZE_CHECKED_DPKEY");
    }
  }
  
  public void b(a.c.t paramt, dc paramdc)
  {
    boolean bool = o.eg;
    int i1 = 0;
    if (!bool)
    {
      if (paramt.c("y.layout.CANONIC_MULTI_STAGE_LAYOUTER_NODE_SIZE_CHECKED_DPKEY") == null)
      {
        a(paramt, paramdc);
        if (bool) {
          break label75;
        }
        if ((paramt instanceof a.c.q))
        {
          ((a.c.q)paramt).a("y.layout.CANONIC_MULTI_STAGE_LAYOUTER_NODE_SIZE_CHECKED_DPKEY", a.i.q.a(Boolean.TRUE));
          i1 = 1;
        }
      }
      new s(r()).b(paramt, paramdc);
    }
    if (i1 != 0) {
      label75:
      ((a.c.q)paramt).j("y.layout.CANONIC_MULTI_STAGE_LAYOUTER_NODE_SIZE_CHECKED_DPKEY");
    }
  }
  
  public dc d(o paramo)
  {
    return c(paramo, paramo);
  }
  
  public dc c(a.c.t paramt, dc paramdc)
  {
    boolean bool = o.eg;
    int i1 = 0;
    if (!bool)
    {
      if (paramt.c("y.layout.CANONIC_MULTI_STAGE_LAYOUTER_NODE_SIZE_CHECKED_DPKEY") == null) {
        a(paramt, paramdc);
      }
    }
    else if (!bool)
    {
      if ((paramt instanceof a.c.q)) {
        ((a.c.q)paramt).a("y.layout.CANONIC_MULTI_STAGE_LAYOUTER_NODE_SIZE_CHECKED_DPKEY", a.i.q.a(Boolean.TRUE));
      }
    }
    else {
      i1 = 1;
    }
    dc localdc = new s(r()).a(paramt, paramdc);
    if (i1 != 0) {
      ((a.c.q)paramt).j("y.layout.CANONIC_MULTI_STAGE_LAYOUTER_NODE_SIZE_CHECKED_DPKEY");
    }
    return localdc;
  }
  
  public boolean canLayout(o paramo)
  {
    if (paramo.c("y.layout.CANONIC_MULTI_STAGE_LAYOUTER_NODE_SIZE_CHECKED_DPKEY") == null) {
      try
      {
        c(paramo);
      }
      catch (IllegalArgumentException localIllegalArgumentException)
      {
        return false;
      }
    }
    rc localrc = r();
    return localrc.canLayout(paramo);
  }
  
  class a_
    implements rc
  {
    a_() {}
    
    public void doLayout(o paramo)
    {
      int i = 0;
      if (!o.eg)
      {
        if (paramo.c("y.layout.CANONIC_MULTI_STAGE_LAYOUTER_NODE_SIZE_CHECKED_DPKEY") == null)
        {
          mb.this.c(paramo);
          paramo.a("y.layout.CANONIC_MULTI_STAGE_LAYOUTER_NODE_SIZE_CHECKED_DPKEY", a.i.q.a(Boolean.TRUE));
          i = 1;
        }
        mb.this.a(paramo);
      }
      if (i != 0) {
        paramo.j("y.layout.CANONIC_MULTI_STAGE_LAYOUTER_NODE_SIZE_CHECKED_DPKEY");
      }
    }
    
    public boolean canLayout(o paramo)
    {
      if (paramo.c("y.layout.CANONIC_MULTI_STAGE_LAYOUTER_NODE_SIZE_CHECKED_DPKEY") == null) {
        try
        {
          mb.this.c(paramo);
        }
        catch (IllegalArgumentException localIllegalArgumentException)
        {
          return false;
        }
      }
      return mb.this.b(paramo);
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.mb

 * JD-Core Version:    0.7.0.1

 */